package org.yzh.web.model.entity;

import java.util.Date;
import java.util.Objects;

public class Device {

    private String clientId;

    private String deviceId;

    private String mobileNo;

    private String plateNo;

    private Integer agencyId;

    private Integer driverId;

    private Integer protocolVersion;

    private Integer altitude;

    private Integer direction;

    private Double lng;

    private Double lat;

    private Float speedKph;

    private Date heartbeatTime;

    private Date locationTime;

    private Date serverTime;

    private Integer sos;

    private Date sosTime;

    private String iccid;

    private Integer electricState;

    private Integer electricPercent;

    private Double electricVoltage;

    private Integer min;

    private Integer max;

    private String bgnDate;

    private String endDate;

    private String remark;

    public Device() {
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getMobileNo() {
        return mobileNo;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public Integer getProtocolVersion() {
        return protocolVersion;
    }

    public void setProtocolVersion(Integer protocolVersion) {
        this.protocolVersion = protocolVersion;
    }

    public Integer getAltitude() {
        return altitude;
    }

    public void setAltitude(Integer altitude) {
        this.altitude = altitude;
    }

    public Integer getDirection() {
        return direction;
    }

    public void setDirection(Integer direction) {
        this.direction = direction;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Float getSpeedKph() {
        return speedKph;
    }

    public void setSpeedKph(Float speedKph) {
        this.speedKph = speedKph;
    }

    public Date getHeartbeatTime() {
        return heartbeatTime;
    }

    public void setHeartbeatTime(Date heartbeatTime) {
        this.heartbeatTime = heartbeatTime;
    }

    public Date getLocationTime() {
        return locationTime;
    }

    public void setLocationTime(Date locationTime) {
        this.locationTime = locationTime;
    }

    public Date getServerTime() {
        return serverTime;
    }

    public void setServerTime(Date serverTime) {
        this.serverTime = serverTime;
    }

    public Integer getElectricState() {
        return electricState;
    }

    public void setElectricState(Integer electricState) {
        this.electricState = electricState;
    }

    public Integer getElectricPercent() {
        return electricPercent;
    }

    public void setElectricPercent(Integer electricPercent) {
        this.electricPercent = electricPercent;
    }

    public Double getElectricVoltage() { return electricVoltage; }

    public void setElectricVoltage(Double electricVoltage) { this.electricVoltage = electricVoltage; }

    public Integer getAgencyId() {
        return agencyId;
    }

    public void setAgencyId(Integer agencyId) {
        this.agencyId = agencyId;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public Integer getMax() {
        return max;
    }

    public void setMax(Integer max) {
        this.max = max;
    }

    public String getBgnDate() {
        return bgnDate;
    }

    public void setBgnDate(String bgnDate) {
        this.bgnDate = bgnDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid;
    }

    public Integer getSos() {
        return sos;
    }

    public void setSos(Integer sosBit) {
        this.sos = sosBit;
    }

    public Date getSosTime() {
        return sosTime;
    }

    public void setSosTime(Date sosTime) {
        this.sosTime = sosTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Device other = (Device) that;
        return Objects.equals(this.deviceId, other.deviceId);
    }

    @Override
    public int hashCode() {
        return ((deviceId == null) ? 0 : deviceId.hashCode());
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder(256);
        sb.append("Device{deviceId=").append(deviceId);
        sb.append(", mobileNo=").append(mobileNo);
        sb.append(", plateNo=").append(plateNo);
        sb.append(", protocolVersion=").append(protocolVersion);
        sb.append('}');
        return sb.toString();
    }
}